/**
 * 获取页面url上的参数
 */
export function getPageParams() {
  let params = {},
    search = window.location.search.replace(/^\?/, "").split("&");

  search.forEach((str) => {
    let [key, value] = str.split("=");
    params[key] = value;
  });

  return params;
}
